package com.cf;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class test1 {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StreamTokenizer in = new StreamTokenizer(br);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        String s = "ababaa";
        String s2 = "abb";
        out.println(s.contains(s2));

        out.flush();
    }
}
